/**
 * 设置storage值
 */
export const setStorage = (key: string, value: any) => {
  localStorage.setItem(key, value);
};

/**
 * 获取指定storage值
 */
export const getStorage = (key: string): string | null => {
  if (!key || key !== 'undefined') {
    return localStorage.getItem(key);
  }
  return null;
};

/**
 * 移除指定storage内的值
 */
export function removeStorage(key: string) {
  localStorage.removeItem(key);
}
